package com.chrray.position.mapper.position;
import com.chrray.position.mapper.position.base.SysRoleBaseMapper;
import com.chrray.position.entity.position.SysRole;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.common.MySqlMapper;

import java.util.List;

/**
 *系统角色 数据访问
 @author lm
 */
public interface SysRoleMapper extends Mapper<SysRole>, MySqlMapper<SysRole>,SysRoleBaseMapper{

    /**
     * * 查询所有角色
     *
     * @return
     */
    List<SysRole> listRole(@Param("roleName") String roleName);

    /**
     * 查询所有已启用角色
     * @return
     */
    List<SysRole> listRoleNotDefault( );
}
